<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">
$(function(){
	
	   $('#resetUtmForm').click(function(){
		 $("#behaviorTypeTemps").val("");
		 $("#utmUtmcsr").val("");
		 $("#utmUtmcmd").val("");
		 $("#utmUserId").val("");
		 $("#utmUtmcct").val("");
		 $("#utmMarkWords").val("");
		 $("#utmBeginTime").val("");
		 $("#utmEnTime").val("");
	    });
	  });
</script>
<form id="pagerForm" method="post" action="${ctx}/statisticsDate/utmDetail">

		
</form>

<form rel="pagerForm" 
	onsubmit="return navTabSearch(this);">
     <input type="hidden" name="pageNum" value="${page.current}" />
    <input type="hidden" name="pageSize" value="${page.pageSize}" />
    <input type="hidden" name="numPerPage" value="${page.pageSize}" />
	<input type="hidden" name="ut"
							 value="true">

	<div class="pageHeader">
		<div class="searchBar">
			<table class="searchContent">
				<tbody>
					<tr>
						<td align="right">行为:</td>
						<td align="left"><select id="behaviorTypeTemps" style="width: 152px;"  name="behaviorType">
								<option value="" >全部  
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
								<option value="1" ${UtmForm.behaviorType=='1'?"selected='true'":""}>访问</option>
								<option value="2" ${UtmForm.behaviorType=='2'?"selected='true'":""}>咨询</option>
								<option value="3" ${UtmForm.behaviorType=='3'?"selected='true'":""}>模拟开户</option>
								<option value="4" ${UtmForm.behaviorType=='4'?"selected='true'":""}>真实开户</option>
								<option value="5" ${UtmForm.behaviorType=='5'?"selected='true'":""}>首次入金</option>
						</select>
						<td>  
						<td align="right">来源：</td>
						<td align="left"><input type="text" name="utmcsr" id="utmUtmcsr"
							class="textInput" value="${UtmForm.utmcsr}">
						<td>
						<td align="right">媒介：</td>
						<td align="left"><input type="text" name="utmcmd" id="utmUtmcmd"
							class="textInput" value="${UtmForm.utmcmd}">
						<td>
						<td align="right">系列：</td>
						<td align="left"><input type="text" name="utmccn" id="utmUtmccn"
							class="textInput" value="${UtmForm.utmccn}">
						<td>
					</tr>
					<tr>
						<td align="right">用户：</td>
						<td align="left"><input type="text" name="userId" id="utmUserId"
							class="textInput" value="${UtmForm.userId}">
						<td>
						<td align="right">组：</td>
						<td align="left"><input type="text" name="utmcct" id="utmUtmcct"
							class="textInput" value="${UtmForm.utmcct}">
						<td>
						<td align="right">关键字：</td>
						<td align="left"><input type="text" name="markWords"id="utmMarkWords"
							class="textInput" value="${UtmForm.markWords}">
						<td>
						<td align="right">访问时间：</td>
						<td align="left"><input type="text"
							class="date textInput readonly" readonly="true" dateFmt="yyyy-MM-dd"
							value="${UtmForm.beginTime}" name="beginTime" id="utmBeginTime"> 至 <input
							tsype="text" class="date textInput readonly" readonly="true" dateFmt="yyyy-MM-dd"
							value="${UtmForm.enTime}" name="enTime" id="utmEnTime">
						<td>
					</tr>

				</tbody>

			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button id="but_submit" class="sous">查   询</button>
								
							</div>
						</div></li>
						<li><div class="buttonActive">
							<div class="buttonContent">
							
						 	<button type="button" id="resetUtmForm">重   置</button>
							</div>
						</div></li>
				</ul>
			</div>
		</div>
	</div>
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li >
			<a class="icon" title="确实要导出这些记录吗?" href="${ctx}/detail/export" target="dwzExport" targetType="navTab"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
		<table class="table" width="100%" layoutH="168" nowrapTD="false">
		<thead>
			<tr>
				<th align="center">用户</th>
				<th align="center">访问时间</th>
				<th align="center">时长</th>
				<th align="center">行为</th>
				<th align="center">来源</th>
				<th align="center">媒介</th>
				<th align="center">系列</th>
				<th align="center" id="text">组</th>
			<!-- 	<th align="center">标记关键词</th> -->
				<th align="center" id="text">关键字</th>
				<th align="center">页面浏览数</th>

			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.data}" var="item" varStatus="status">
				<tr target="sid" rel="${item.id}">
					<td><a id="userDateTemp" title="用户详情"  href="${ctx}/detail/dataDetail?userId=${item.userId}" target="dialog"   rel="dialog_user_page" maxable="false" minable="false" width="1200" height="600" mask="true"style="color: #0082E4;" >${item.userId}</a></td>
					<td><fmt:formatDate value="${item.startTime}"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
							
							
					<td>${item.timeLength}</td>
					<td >
					<c:if test="${not empty item.behaviorType}">
					<a title="用户详情" id="userBahavoiorTemp" href="${ctx}/detail/dataDetail?userId=${item.userId}" target="dialog"  rel="dialog_bh_page" maxable="false"minable="false" width="1200" height="600" mask="true" style="color: #0082E4;" >${item.behaviorTemp}</a>
					</c:if>
					<c:if test="${empty item.behaviorType}">
						${item.behaviorTemp}
					</c:if>
					
					
					
					</td>
					<td>${item.utmcsr}</td>
					<td>${item.utmcmd}</td>
					<td>${item.utmccn}</td>
					<td id="text">${item.utmcct}</td>
			
					<td id="text" >${item.utmctr}</td>
					<td>${item.browserCount}</td>
				</tr>
			</c:forEach>

		</tbody>
	</table>
    <%@include file="/WEB-INF/view/commons/paging.jsp"%>
</div>

